package com.ita.util;

import org.apache.tomcat.util.codec.binary.Base64;

public class Base64Util {
	//byte[]转base64  
    public static String byteToBase64(byte[] b){  
        return Base64.encodeBase64String(b);  
    }
    
	//base64转byte[]
    public static byte[] base64ToByte(String base64Str){  
        return Base64.decodeBase64(base64Str);  
    }
}
